package com.lry.basic.jvm.asm.proxy;


import jdk.internal.org.objectweb.asm.util.ASMifier;

public class Client {
  public static void main(String[] args) throws Throwable {
//      ASMifier.main(new String[]{SingerAgent.class.getName()});

      Enhancer enhancer = new Enhancer();
      enhancer.setSuperClass(Singer.class);
      enhancer.setMethodInterceptor(new SingMethodInterceptor());

      Singer singer = (Singer) enhancer.create();
      singer.sing();
  }
}